package cn.iocoder.yudao.module.peizhen.controller.admin.buiessorder.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 订单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class BuiessOrderRespVO {

    @Schema(description = "订单id", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("订单id")
    private Long id;
    @Schema(description = "订单流水号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("订单流水号")
    private String no;

    @Schema(description = "医院id", example = "535")
    @ExcelProperty("医院id")
    private Integer hospitalId;
    @Schema(description = "医院名称", example = "张三")
    @ExcelProperty("医院名称")
    private String hospitalName;

    @Schema(description = "科室名称", example = "王五")
    @ExcelProperty("科室名称")
    private String sectionName;

    @Schema(description = "期望就诊时间")
    @ExcelProperty("期望就诊时间")
    private LocalDateTime hopeTime;

    @Schema(description = "用户额外需求", example = "随便")
    @ExcelProperty("用户额外需求")
    private String memberRemark;

    @Schema(description = "服务项目名称", example = "张三")
    @ExcelProperty("服务项目名称")
    private String programName;

    @Schema(description = "就诊人姓名", example = "芋艿")
    @ExcelProperty("就诊人姓名")
    private String paitentName;

    @Schema(description = "服务人员姓名", example = "赵六")
    @ExcelProperty("服务人员姓名")
    private String staffName;

    @Schema(description = "订单状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "订单状态", converter = DictConvert.class)
    @DictFormat("peizhen_program_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "是否已支付：[0:未支付 1:已经支付过]", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private Integer payStatus;

    @Schema(description = "订单支付时间")
    @ExcelProperty("订单支付时间")
    private LocalDateTime payTime;

    @Schema(description = "支付成功的支付渠道")
    @ExcelProperty("支付成功的支付渠道")
    private String payChannelCode;

    @Schema(description = "订单完成时间")
    @ExcelProperty("订单完成时间")
    private LocalDateTime finishTime;

    @Schema(description = "订单取消时间")
    @ExcelProperty("订单取消时间")
    private LocalDateTime cancelTime;

    @Schema(description = "商品原价（总），单位：分", requiredMode = Schema.RequiredMode.REQUIRED, example = "12973")
    @ExcelProperty("商品原价（总），单位：分")
    private Integer totalPrice;

    @Schema(description = "订单优惠（总），单位：分", requiredMode = Schema.RequiredMode.REQUIRED, example = "11908")
    @ExcelProperty("订单优惠（总），单位：分")
    private Integer discountPrice;

    @Schema(description = "应付金额（总），单位：分", requiredMode = Schema.RequiredMode.REQUIRED, example = "3573")
    @ExcelProperty("应付金额（总），单位：分")
    private Integer payPrice;

    @Schema(description = "退款金额，单位：分", requiredMode = Schema.RequiredMode.REQUIRED, example = "31339")
    @ExcelProperty("退款金额，单位：分")
    private Integer refundPrice;

    @Schema(description = "使用的积分", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("使用的积分")
    private Integer usePoint;

    @Schema(description = "积分抵扣的金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "11235")
    @ExcelProperty("积分抵扣的金额")
    private Integer pointPrice;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}